package com.platform.modules.prj.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Auther: Zhouxw
 * @Date: 2019-7-4 20:01
 * @Description: 建设单位或者监管机构 与 审图机构签订合同数据DTO
 */
@Data
@ApiModel(value = "项目合同DTO", description = "项目合同DTO")
public class ProjectContract {
    @ApiModelProperty(value = "申报ID")
    private String decId;

    @ApiModelProperty(value = "甲方(建设单位或者委托方)")
    private String firstParty;

    @ApiModelProperty(value = "审图机构")
    private String checkOrgName;

    @ApiModelProperty(value = "建设单位")
    private String buildCorpName;

    @ApiModelProperty(value = "设计单位")
    private String sjCorpName;

    @ApiModelProperty(value = "勘察单位名称")
    private String kcCorpName;

    @ApiModelProperty(value = "项目名称")
    private String prjName;

    @ApiModelProperty(value = "建设规模")
    private String prjScale;

    @ApiModelProperty(value = "建设地址")
    private String prjLocation;

    @ApiModelProperty(value = "总投资（万元）")
    private BigDecimal allInvest;

    @ApiModelProperty(value = "设计合同编号")
    private String sjAgreementNum;

    @ApiModelProperty(value = "结构类型")
    private String structureType;

    @ApiModelProperty(value = "层数")
    private String layerNum;

    @ApiModelProperty(value = "幢数")
    private String blockNum;

    @ApiModelProperty(value = "单体审查费合计")
    private String checkFeeTotal;

    @ApiModelProperty(value = "大写的合计,例（壹万叁仟玖佰贰拾肆元）")
    private String checkFeeTotalBig;

    @ApiModelProperty(value = "限定时间,例（2019年06月07日）")
    private Date limitDate;
    
    @ApiModelProperty(value = "限定时间,例（2019年06月07日）")
    private String limitDatePam;

    @ApiModelProperty(value = "其他补充条款")
    private String additionalContent;

    @ApiModelProperty(value = "甲方法定代表人")
    private String comartiperson;

    @ApiModelProperty(value = "甲方单位地址")
    private String address;

    @ApiModelProperty(value = "甲方邮政编码")
    private String postalCode;

    @ApiModelProperty(value = "甲方联系电话")
    private String linkPhone;

    @ApiModelProperty(value = "开户银行")
    private String basicAccountBank;

    @ApiModelProperty(value = "银行账号")
    private String basicAccountBankNo;

    @ApiModelProperty(value = "签订协议代表")
    private String representative;

    @ApiModelProperty(value = "审图机构法定代表人")
    private String checkComartiperson;

    @ApiModelProperty(value = "审图机构单位地址")
    private String checkAddress;

    @ApiModelProperty(value = "审图机构邮政编码")
    private String checkPostalCode;

    @ApiModelProperty(value = "审图机构联系电话")
    private String checkLinkPhone;

    @ApiModelProperty(value = "审图机构开户银行")
    private String checkBasicAccountBank;

    @ApiModelProperty(value = "审图机构银行账号")
    private String checkBasicAccountBankNo;

    @ApiModelProperty(value = "审图机构签订协议代表")
    private String checkRepresentative;

    @ApiModelProperty(value = "单体列表")
    private List<SingleProject> singleProjectList;

    @ApiModelProperty(value = "年")
    private String year;

    @ApiModelProperty(value = "月")
    private String month;

    @ApiModelProperty(value = "日")
    private String day;

    @Data
    @ApiModel(value = "合同中单体DTO", description = "合同中单体DTO")
    public static class SingleProject {

        @ApiModelProperty(value = "序号")
        private String serialNumber;

        @ApiModelProperty(value = "单体ID(用于修改)")
        private String singlePrjId;

        @ApiModelProperty(value = "单体名称")
        private String singlePrjName;

        @ApiModelProperty(value = "规模或面积")
        private String scaleOrArea;

        @ApiModelProperty(value = "投资额")
        private String invest;

        @ApiModelProperty(value = "设计费额")
        private String sjFee;

        @ApiModelProperty(value = "费率")
        private String rate;

        @ApiModelProperty(value = "审查费（元）")
        private String checkFee;
    }

}
